how to check if key is present in a java map